// pages/ArtDialog/artDialog.js
Component({
  /**
   * Component properties
   */
  properties: {
    isShow : {
      type  : Boolean,
      value : false
    }
  },

  /**
   * Component initial data
   */
  data: {
    inputData : {
      contact:"", 
      phone:"",
      note:""
    }
  },

  /**
   * Component methods
   */
  methods: {
    onCancel(e){
      this.setData({ isShow : false })
    },
    onConfirm(e){
      this.triggerEvent('confirm', { value : this.data.inputData })
    },
    contactChang:function(e){
      let value = e.detail.value
      this.setData({"inputData.contact":value})
    },
    phoneChange:function(e){
      let value = e.detail.value
      this.setData({"inputData.phone":value})
    },
    noteChang:function(e){
      let value = e.detail.value
      this.setData({"inputData.note":value})
    },
  },
  
  
})
